package com.ruoyi.util;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class ThreadLocalUtil {
    private static final ThreadLocal<String> threadLocal = new ThreadLocal<>();
    public static void set(String id){
        threadLocal.set(id);
    }
    public static String get(){
       return threadLocal.get();

    }

}
